import axios from "@/request";
import {$m} from "@/MUI";

export function get (data){
  return axios.get('/demo/function/get',{
    params:data
  })
}
export function post (data){
  return axios.post('/demo/function/post',data)
}
export function del (id){
  var url = $m.paramsSplice('/demo/function/delete', id)
  return axios.delete(url)
}
export function put (id, data){
  var url = $m.paramsSplice('/demo/function/put', id)
  return axios.put(url, data)
}


